#include "ChannelData.h"

ChannelData::ChannelData(bool bidirectional)
{
	mBidirectional = bidirectional;
}
ChannelData::~ChannelData()
{

}
void ChannelData::setSource(ModuleData* sourceModuleData, string sourceName, string sourceType)
{
	mSourceModuleData = sourceModuleData;
	mSourceName = sourceName;
	mSourceType = sourceType;

}
void ChannelData::setTarget(ModuleData* targetModuleData, string targetName, string targetType)
{
	mTargetModuleData = targetModuleData;
	mTargetName = targetName;
	mTargetType = targetType;
}

string ChannelData::getSourceName()
{
	return mSourceName;
}


string ChannelData::getSourceType()
{
	return mSourceType;
}

string ChannelData::getTargetName()
{
	return mTargetName;
}

string ChannelData::getTargetType()
{
	return mTargetType;
}

ModuleData* ChannelData::getTargetModuleData()
{
	return mTargetModuleData;
}

ModuleData* ChannelData::getSourceModuleData()
{
	return mSourceModuleData;
}

bool ChannelData::isBidirectional()
{
	return mBidirectional;
}